//
//  TitleAndArrowCell.m
//  WE
//
//  Created by iMacOne on 15/12/2.
//  Copyright © 2015年 UNOHACHA. All rights reserved.
//

#import "TitleAndArrowCell.h"
#import "Size.h"
#import <Masonry.h>
@interface TitleAndArrowCell ()
@property (nonatomic, strong)UIImageView * arrowImageV;

@end

@implementation TitleAndArrowCell

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.titleLbl = [UILabel new];
        _titleLbl.font = FONT(12);
        _titleLbl.textColor = [UIColor grayColor];
        [self.contentView addSubview:_titleLbl];
        [_titleLbl mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.equalTo(self.contentView).offset(10);
            make.top.equalTo(self.contentView).offset(10);
            make.height.offset(20);
        }];
        
        self.arrowImageV = [UIImageView new];
        _arrowImageV.image = [UIImage imageNamed:@"ico_arrow"];
        [self.contentView addSubview:_arrowImageV];
        [_arrowImageV mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.equalTo(self.contentView).offset(WindowWidth - 30);
            make.top.equalTo(_titleLbl.mas_top);
            make.height.offset(20);
            make.width.offset(10);
        }];
        
        self.conLbl = [UILabel new];
        _conLbl.font = FONT(12);
        //        _titleLbl.textColor = GRAYCOLOR;
        
        _conLbl.textAlignment = NSTextAlignmentRight;
//        _conLbl.backgroundColor = [UIColor yellowColor];
        [self.contentView addSubview:_conLbl];
        [_conLbl mas_makeConstraints:^(MASConstraintMaker *make) {
//            make.left.equalTo(self.contentView).offset(WindowWidth - 140);
            make.right.equalTo(_arrowImageV.mas_left);
            make.top.equalTo(_titleLbl.mas_top);
            make.height.offset(20);
        }];

        
        
                
    }
    return self;
}


@end
